package java10;

import java.util.Scanner;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/4/17 11:13
 * 统计正数个数
 * https://www.nowcoder.com/practice/3266386e460a4e219d6b7d0bed2065b9?tpId=220&tqId=2109873&ru=%2Fexam%2Foj&qru=%2Fta%2Fprimary-grammar-java%2Fquestion-ranking&sourceUrl=%2Fexam%2Foj
 */
public class Main {
    public static void main(String[] args) {
        int count = 0;
        Scanner scanner = new Scanner(System.in);
        while (true) {
            int num = scanner.nextInt();
            if (num <= 0) {
                break;
            }
            count++;
        }
        System.out.println(count);
    }
}
